app.service("userService", function ($http) {

    this.findPage = function (pageNum, pageSize, searchEntity) {
        return $http.post("../user/findPage?pageNum=" + pageNum + "&pageSize=" + pageSize, searchEntity)
    };

    this.delete = function (user) {
        return $http.post("../user/delete", user);
    };

    this.addIdCard = function (user) {
        return $http.post("../user/addIdCard", user);
    };
    this.signExport = function (data) {
        return $http.post("../user/sign/export", data)
    }

    this.addBusinessLicense = function (user) {
        return $http.post("../user/addBusinessLicense", user);
    };
    this.cancellation = function (userId,selfEmployedStatus) {
        let data = {"userId": userId,"selfEmployedStatus":selfEmployedStatus};
        return $http.post("../user/cancellation", data);
    }

    this.addPaperContract = function (user) {
        return $http.post("../user/savePaperContract", user);
    };

    this.downloadContract = function (params) {
        return $http.post("../user/downloadContract", params);
    };

    this.downloadContractUrls = function (params) {
        return $http.post("../user/downloadContractUrls", params);
    };
});